package com.example.mybatisdemo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.mybatisdemo.dao.AgentDao;
import com.example.mybatisdemo.pojo.Agent;
import com.example.mybatisdemo.service.AgentService;


@Service
public class AgentServiceImpl implements AgentService {

	@Autowired
	private AgentDao agentDao;

	@Override
	public List<Agent> getList() {
		return agentDao.selectAll();
	}
	
	
}
